package com.techfengs.chapter03;

public class StringToBasicDetail {
  public static void main (String[] args) {
    String str = "123";
    int n1 = Integer.parseInt(str);
    System.out.println(n1);

    // String str1 = "hello";
    // int n2 = Integer.parseInt(str1);
    // System.out.println(n2);
    // ×
  }
}
